// 题20
function Test20() {
	async function async1() {
		console.log('async1 start');
		await new Promise((resolve) => {
			console.log('promise1');
		});
		console.log('async1 success');
		return 'async1 end';
	}
	console.log('script start');
	async1().then((res) => console.log(res));
	console.log('script end');
}
Test20()
// 结果：
// script start
// async1 start
// promise1
// script end
/**
 * 解析：Promise一直pending所以await后面的内容不会执行，包括async1的then中
 */